home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2000 October
/
CHIP Turkiye Ekim 2000.iso
/
prog
/
share
/
23
/
setup.exe
/
mirror.lib
/
menus.js
< prev
next >
Wrap
Text File
|
2000-06-27
|
2KB
|
87 lines
var navadj = 0
var holder = 0
var browser = ""
function imgOn(temp) {
for (var count = 1; count <= menuLength; count++) {
if (temp == "nav_over[" + count + "]" ) {
nav_over[count] = "true"
}
}
imgCheck()
}
function imgOff(temp) {
for (var count = 1; count <= menuLength; count++) {
if (temp == "nav_over[" + count + "]" ) {
nav_over[count] = "false"
}
}
imgCheck()
}
function imgCheck() {
holder = 0
for (var count = 1; count <= menuLength; count++) {
if (menu_over[count] == "true" || nav_over[count] == "true" ) {
if (document.all) {
for (var newcount = 1; newcount <= menuLength; newcount++) {
browser = eval("document.all.explorer" + newcount + ".style")
if (count == newcount) {
browser.visibility = "visible"
}
else {
browser.visibility = "hidden"
}
}
}
if (document.layers) {
for (var newcount = 1; newcount <= menuLength; newcount++) {
browser = eval("document.layers.navigator" + newcount)
if (count == newcount) {
browser.visibility = "show"
}
else {
browser.visibility = "hide"
}
}
}
if (count < 10) {
document.navigation.src = eval("nav0" + count +".src")
}
if (count > 9) {
document.navigation.src = eval("nav" + count +".src")
}
for (var newcount = 1; newcount <= menuLength; newcount++) {
if (count != newcount) {
menu_over[newcount] = "false"
nav_over[newcount] = "false"
}
}
holder = 1
}
}
if (holder == 0) {
hideall()
}
}
function hideall() {
if (document.all) {
for (var count = 1; count <= menuLength; count++) {
browser = eval("document.all.explorer" + count + ".style")
browser.visibility = "hidden"
}
}
if (document.layers) {
for (var count = 1; count <= menuLength; count++) {
browser = eval("document.layers.navigator" + count)
browser.visibility = "hide"
}
}
document.navigation.src = nav00.src
for (var count = 1; count <= menuLength; count++) {
menu_over[count] = "false"
nav_over[count] = "false"
}
}